<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>编辑站点</title>
  <link rel="stylesheet" href="/admin/src/css/layui.css">
  <style>
    .mr10{
      display: inline-block;
    }
    .layui-form-label{
      min-width: 100px;
    }

  </style>
</head>

<body >
<form class="layui-form " style="margin:20px auto;">
  <div class="layui-form-item">
    <label class="layui-form-label">真实姓名:</label>
    <div class="layui-input-inline">
      <div style="margin-top: 10px;">{$list['real_name']}</div>
<!--      <input type="text" name="real_name" id="real_name" value="{$list['real_name']}"  placeholder="请输入站点联系人" autocomplete="off" class="layui-input">-->
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">联系方式</label>
    <div class="layui-input-inline">
      <div style="margin-top: 10px;">{$list['uid']}</div>
<!--      <input type="text" name="uid" id="uid" value="{$list['uid']}" lay-verify="required" placeholder="请输入站点名称" autocomplete="off" class="layui-input">-->
      <input type="hidden" name="id" id="id" value="{$id}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">银行名称</label>
    <div class="layui-input-inline">
      <div style="margin-top: 10px;">{$list['bank_name']}</div>
<!--      <input type="text" name="bank_name" id="bank_name" value="{$list['bank_name']}"  placeholder="请输入站点联系电话" autocomplete="off" class="layui-input">-->
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">银行卡号</label>
    <div class="layui-input-inline">
      <div style="margin-top: 10px;">{$list['bank_code']}</div>
<!--      <input type="text" name="bank_code" id="bank_code" value="{$list['bank_code']}"  placeholder="请输入站点联系电话" autocomplete="off" class="layui-input">-->
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">开户行</label>
    <div class="layui-input-inline">
      <div style="margin-top: 10px;">{$list['bank_address']}</div>
<!--      <input type="text" name="bank_address" id="bank_address" value="{$list['bank_address']}"  placeholder="请输入站点联系电话" autocomplete="off" class="layui-input">-->
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">提现金额</label>
    <div class="layui-input-inline">
      <div style="margin-top: 10px;">{$list['money']}</div>
<!--      <input type="text" name="money" id="money" value="{$list['money']}"  placeholder="请输入站点联系电话" autocomplete="off" class="layui-input">-->
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">手续费</label>
    <div class="layui-input-inline">
      <div style="margin-top: 10px;">{$list['ismoney']}</div>
<!--      <input type="text" name="ism1oney" id="ismoney" value="{$list['ismoney']}"  placeholder="请输入站点联系电话" autocomplete="off" class="layui-input">-->
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-block" style="display: flex;align-items: center">
      <input type="radio"  name="status" value="0" title="未审核" {$list['status'] == 0 ? 'checked' : ''}>
      <input type="radio"  name="status" value="1" title="已通过" {$list['status'] == 1 ? 'checked' : ''}>
      <input type="radio"  name="status" value="2" title="已驳回" {$list['status'] == 2 ? 'checked' : ''}>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">创建时间</label>
    <div class="layui-input-inline" style="width:800px;">
      <div style="margin-top: 10px;">{$list['create_time']}</div>
<!--      <input type="text" name="create_time" id="create_time" value="{$list['create_time']}"  placeholder="请输入站点备注" autocomplete="off" class="layui-input">-->
    </div>
  </div>

  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
    </div>
  </div>
</form>
<script src="/admin/src/layui.js" ></script>
<script src="/unpkg.com/layui@2.9.2/dist/layui.js"></script>
<script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=0yEI5xGxBNZ1D526ReXRSawsSxY1CZdG"></script>
<script>
  layui.use(['form','jquery','upload'], function() {
    var form = layui.form,
        layer = layui.layer,
        upload = layui.upload,
        $ = layui.jquery;

    //监听表单提交
    form.on('submit(formDemo)', function (data) {
      var postData = data.field;
      console.log('11111111111', postData)
      $.ajax({
        url: '/admin/tixian/update/data',
        type: 'POST',
        data: postData,
        success: function (backData) {
          if (backData['status'] == 200) {
            layer.msg(backData.message, {time: 1200}, function () {
              window.parent.frames.location.href = "/admin/tixian/index"
            })

          } else {
            layer.msg(backData.message);
          }
        }
      })
      return false;
    });
  });


</script>
</body>
</html>
